﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 创建者模式
{
    public class PearFruit:Fruit
    {
        private readonly string type;
        private readonly int size;
        private readonly string productAddress;

        public PearFruit(string name,string type,int size,string ProductAddress) :base(name)
        {
            this.type = type;
            this.size = size;
            productAddress = ProductAddress;
        }

        public override void Show()
        {
            Console.WriteLine($"{name}--{type}--{size}--{productAddress}");
        }
    }
}
